package ch2;

import java.util.Scanner;

public class InputScore {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("请输入成绩：");
		double d = in.nextDouble();
		System.out.println("请输入这位同学的年龄：");
		int age = in.nextInt();
		System.out.println("姓名：");
		String name = in.next();
		System.out.println("这个同学叫：" + name);
		System.out.println("这个同学的成绩是：" + d);
		System.out.println("今年" + age + "岁了");
	}
}
